package dancrawler.client.gamecmd;

import dancrawler.client.Client;
import dancrawler.common.Misc;
import dancrawler.proto.cmd.CmdHandler;
import dancrawler.server.netMsg;

/**
 *
 */
public class CmdDefTile extends CmdHandler{
    private Client client;
    protected int[] args = {2, -1,1};

    public CmdDefTile(Client client) {
        this.client = client;
    }
    
    
    
    @Override
    public void handleCmd(netMsg msg) {
        client.getRec().defTile(new String(msg.getArgs()[1]), Misc.bytesToShort(msg.getArgs()[0]), false);
    }
    
    @Override
    public int getId() {
        return 21;
    }

 

    @Override
    public CmdHandler getHandler() {
       return this;
    }
    
}
